"use strict";
function printName(info) {
    if (info.age) {
        console.log("\u6211\u53EB\uFF1A" + info.firstName + "," + info.lastName + "\uFF0C\u5E74\u9F84\uFF1A" + info.age);
    }
    else {
        console.log("\u6211\u53EB\uFF1A" + info.firstName + "," + info.lastName + "\uFF0C\u5E74\u9F84:\u4FDD\u5BC6");
    }
}
printName({ firstName: 'lili', lastName: 'zhang', age: 18, address: '石家庄' });
var arr = ['str1', 'str2'];
console.log(arr[1]);
var obj = { name: 'lili', age: '20' };
console.log(obj.name);
console.log(obj.age);
var Dog = /** @class */ (function () {
    function Dog(name) {
        this.name = name;
    }
    Dog.prototype.eat = function () {
        console.log(this.name + '吃肉');
    };
    return Dog;
}());
var d = new Dog('达摩');
d.eat();
var Cat = /** @class */ (function () {
    function Cat(name) {
        this.name = name;
    }
    Cat.prototype.eat = function () {
        console.log(this.name + '吃鱼');
    };
    return Cat;
}());
var cat = new Cat('小花');
cat.eat();
